@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&family=Open+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Open+Sans&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #0d0d0d;
    color: white;
}

/* ───── Navbar ───── */
.navbar {
    background-color: #000;
    height: 72px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #fff;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 4rem;
}

.navbar-logo {
    height: 49px;
    width: 152px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.nav-menu a:hover {
    color: #ccc;
}

.profile-pic {
    height: 46px;
    width: 46px;
    border-radius: 50%;
    object-fit: cover;
}

/* ───── Hero Section ───── */
body {
    margin: 0;
    background-color: #0d0d0d;
    font-family: 'Georgia', serif;
    color: white;
}

.about-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    padding: 0;
}

/* ABOUT US Title */
.about-title {
    font-size: 100px;
    text-align: center;
    color: #dfdcdc;
    font-family: 'Playfair Display', serif;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

/* Common image styles */
.image {
    position: absolute;
    filter: grayscale(100%);
    object-fit: cover;
    border-radius: 4px;
}

/* Top left image */
.top-left {
    top: 40px;
    left: 30px;
    height: 300px;
    width: 200px;
}

/* Top center image */
.top-center {
    top: 0px;
    left: 35%;
    transform: translateX(-50%);
    width: 250px;
    height: 250px;
}

/* Top right: VISION Card */
.vision-box {
    position: absolute;
    top: 40px;
    right: 60px;
    width: 500px;
    height: 150px;
    background-color: #181818;
    border: 1px solid #444;
    padding: 20px;
    line-height: 1.6;
    z-index: 2;
}

.vision-box h2 {
    font-size: 16px;
    font-weight: bold;
    margin-top: 0;
}

/* Mid right image */
.mid-right {
    top: 270px;
    right: 150px;
    width: 200px;
    height: 250px;
}

/* Bottom left: MISSION Card */
.mission-box {
    position: absolute;
    bottom: 0px;
    left: 60px;
    width: 260px;
    height: 350px;
    background-color: #181818;
    border: 1px solid #444;
    padding: 20px;
    line-height: 1.6;
    z-index: 2;
}

.mission-box h2 {
    font-size: 16px;
    font-weight: bold;
    margin-top: 0;
}

/* Bottom center image */
.bottom-center {
    bottom: 100px;
    left: 45%;
    transform: translateX(-50%);
    width: 200px;
}

/* Bottom right image */
.bottom-right {
    bottom: 0px;
    right: 270px;
    width: 200px;
    height: 150px;
}


/* ───── History Scroll Animation ───── */
.history-section {
  position: relative;
  height: 400vh; /* enough scroll space */
  background: #fff;
  color: #000;
  font-family: 'Playfair Display', serif;
  padding: 0;
}

.history-title {
  position: sticky;
  top: 40px;
  font-size: 60px;
  margin: 0 0 40px 60px;
  z-index: 5;
}

.history-content {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 60px;
}

.timeline {
  position: relative;
  flex: 1;
  padding-left: 100px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 181px;
  width: 2px;
  height: 0; /* grows with scroll */
  background-color: #000;
  transition: height 0.3s ease;
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
  opacity: 0.2;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.timeline-item.active {
  opacity: 1;
  transform: translateY(0);
}

.year {
  width: 50px;
  text-align: right;
  font-size: 20px;
  margin-right: 20px;
}

.dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #000;
  margin-right: 30px;
}

.description {
  font-size: 18px;
  line-height: 1.5;
  max-width: 480px;
}

.history-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.history-image img {
  position: absolute;
  width: 600px;
  height: 400px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.history-image img.active {
  opacity: 1;
}

/* Keep old styles … just add these */

.history-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.history-image img {
  position: absolute;
  width: 600px;
  height: 400px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.8s ease;
}

.history-image img.active {
  opacity: 1;
}

/* Special 1969 images hidden initially */
.special-img {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.special-img.tree {
  width: 400px;
  height: auto;
}

/* When revealed */
.special-img.show {
  opacity: 1;
  transform: translate(0,0);
}

/* Base hidden state (start off left+down) */
.special-img.deer {
  width: 100px;
  height: auto;
  position: absolute;
  bottom: 0;
  left: 50%; /* stays aligned under tree */
  transform: translateX(-150%) translateY(150%); /* start far bottom-left */
  opacity: 0;
  transition: all 0.8s ease;
}

/* Final visible state */
.special-img.deer.show {
  opacity: 1;
  transform: translateX(90%) translateY(150%); /* your final place */
}

/* Special rule for the 1998 CMI image */
.history-image img[src*="cmi.jpg"] {
  object-fit: contain;   /* shows full image */
  background: #fff;      /* avoids black bars if it doesn’t fill */
  width: 600px;
  height: 400px;
  border-radius: 6px;    /* optional, makes it polished */
}

/* Special rule for 2004 chclg.png */
.history-image img[src*="chclg.png"] {
  width: 600px;
  height: 400px;
  object-fit: cover;

  /* Fade all edges into white */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
                      linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-composite: intersect;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: cover;

  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
              linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-composite: intersect;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: cover;

  background: white; /* ensures fade merges with bg */
}



/* ───── Department Section ───── */
.department-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0d0d0d;
    color: #fff;
    min-height: 600px;
    padding: 80px 60px;
    font-family: 'Open Sans', sans-serif;
}

.department-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 1300px;
    width: 100%;
    gap: 60px;
}

.department-content .text {
    flex: 1;
    padding-right: 340px;
}

.department-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    margin-bottom: 30px;
}

.department-content p {
    font-size: 18px;
    line-height: 1.8;
}

.department-content .image {
    flex: 1;
    display: flex;
    flex-shrink: 0;
    width: 92vw;
    justify-content: flex-end;
    align-items: right;
    filter: grayscale(0%);
}

.department-content .image img {
    width: 520px;
    height: 600px;
    object-fit: cover;
    border-radius: 0;
    clip-path: ellipse(75% 50% at 100% 50%);
}

/* ───── Responsive ───── */
@media (max-width: 992px) {
    .department-content {
        flex-direction: column;
        text-align: center;
    }

    .department-content .text {
        padding: 0;
    }

    .department-content .image img {
        width: 100%;
        clip-path: none;
        border-radius: 10px;
    }

    .department-content h1 {
        font-size: 40px;
    }

    .department-content p {
        font-size: 16px;
    }
}



/* Dean Section */
    .dean-section {
      background-color: #fff;
      color: #000;
      font-family: 'Playfair Display', serif;
      padding: 60px 40px;
    }

    .dean-container {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 60px;
      flex-wrap: wrap;
    }

    .dean-card {
      background-color: #0d0d0d;
      border-radius: 10px;
      overflow: hidden;
      text-align: center;
      max-width: 500px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

    .dean-card img {
      width: 100%;
      height: 320px;
      object-fit: cover;
      display: block;
    }

    .dean-name {
      background-color: #0d0d0d;
      color: white;
      padding: 16px 8px;
      font-size: 15px;
      font-family: 'Playfair Display', serif;
    }

    .dean-name h3 {
      margin: 0;
      font-weight: 500;
      line-height: 1.5;
      font-size: 14px;
      letter-spacing: 0.3px;
    }

    .dean-text {
      flex: 1;
      font-family: 'Open Sans', sans-serif;
    }

    .dean-text h1 {
      font-family: 'Playfair Display', serif;
      font-size: 40px;
      margin-bottom: 20px;
      font-weight: 600;
    }

    .dean-text p {
      font-family: 'Times', serif;
      font-size: 20px;
      line-height: 1.8;
      margin-bottom: 15px;
      text-align: justify;
    }

    /* Read More button */
    .read-more-btn {
      margin-top: 20px;
      padding: 10px 20px;
      background: #002147;
      color: #fff;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 16px;
      transition: background 0.3s ease;
    }
    .read-more-btn:hover { background: #003366; }

    /* Modal background overlay */
    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0; top: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.5);
      backdrop-filter: blur(6px);
      justify-content: center;
      align-items: center;
      padding: 20px;
    }

    /* Modal content */
    .modal-content {
      background: #fff;
      color: #000;
      max-width: 800px;
      max-height: 80vh;
      overflow-y: auto;
      padding: 30px;
      border-radius: 12px;
      position: relative;
      animation: fadeInUp 0.5s ease forwards;
    }

    /* Close button */
    .close-btn {
      position: absolute;
      top: 15px; right: 20px;
      font-size: 28px;
      font-weight: bold;
      cursor: pointer;
      color: #333;
    }
    .close-btn:hover { color: #000; }

    /* Animation */
    @keyframes fadeInUp {
      from { opacity: 0; transform: scale(0.9) translateY(20px); }
      to { opacity: 1; transform: scale(1) translateY(0); }
    }

    /* Responsive */
    @media (max-width: 768px) {
      .dean-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .dean-text h1 {
        font-size: 28px;
      }

      .dean-text p {
        text-align: center;
      }
    }

.footer {
    background: #090303;
    color: white;
    padding: 80px 64px;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1280px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.footer-subscribe {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
}

.subscribe-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.subscribe-text p {
    font-size: 14px;
    margin-top: 6px;
    color: #ccc;
}

.subscribe-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.input-wrapper {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 10px 16px;
}

.input-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 14px;
    width: 220px;
}

.subscribe-form button {
    background: transparent;
    border: 2px solid white;
    border-radius: 12px;
    padding: 10px 24px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    background: white;
    color: #090303;
}

.privacy {
    font-size: 10px;
    color: #ccc;
    margin-top: 8px;
}

/* Footer Links Section */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    justify-content: space-between;
}

.link-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.link-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-column li {
    margin: 6px 0;
}

.link-column a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.link-column a:hover {
    color: #bbb;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-left {
    flex: 1;
}

.footer-bottom-right {
    text-align: right;
    font-size: 14px;
    color: #ccc;
}

.footer-logo {
    width: 152px;
    height: auto;
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    margin: 24px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .team-section {
        padding: 80px 32px;
    }

    .team-row {
        flex-direction: column;
        gap: 32px;
    }

    .team-header h2 {
        font-size: 32px;
        line-height: 42px;
    }
}

@media (max-width: 480px) {
    .team-section {
        padding: 64px 16px;
    }

    .team-member {
        max-width: 100%;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .features-section {
        padding: 80px 32px;
    }

    .features-cards {
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .features-section {
        padding: 64px 16px;
    }

    .features-header h2 {
        font-size: 32px;
        line-height: 42px;
    }

    .feature-card {
        max-width: 100%;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .mission-vision-section {
        padding: 60px 32px;
        height: auto;
    }

    .mission-vision-container {
        flex-direction: column;
    }

    .mission-image {
        width: 100%;
        height: auto;
        margin-top: 32px;
    }
}

/* Responsive Styling */
@media (max-width: 768px) {
    .navbar-inner {
        padding: 0 2rem;
    }

    .nav-menu {
        gap: 16px;
    }

    .hero-content {
        margin-left: 20px;
        width: calc(100% - 64px);
    }
}

@media (max-width: 480px) {
    .navbar-inner {
        padding: 0 1rem;
    }

    .nav-menu {
        display: none;
    }

    .hero-content {
        margin-left: 16px;
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ===================== MODERN FLOAT & REVEAL ANIMATIONS ===================== */
:root {
    --ani: .8s;
    --ani-slow: 1.8s;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Page fade-in */
body {
    opacity: 0;
    transform: translateY(12px);
    animation: pageIn .8s var(--ease-out) forwards;
}

@keyframes pageIn {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Floating loop effect for hero images */
.image {
    opacity: 0;
    transform: translateY(20px) scale(.95);
    animation: floatIn var(--ani) var(--ease-out) forwards;
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: none;
    }
}

.top-left {
    animation-delay: .2s;
    animation: floatIn .9s var(--ease-out) forwards, floatY var(--ani-slow) ease-in-out infinite alternate;
}

.top-center {
    animation-delay: .4s;
    animation: floatIn .9s var(--ease-out) forwards, floatY var(--ani-slow) ease-in-out infinite alternate;
}

.mid-right {
    animation-delay: .6s;
    animation: floatIn .9s var(--ease-out) forwards, floatY var(--ani-slow) ease-in-out infinite alternate;
}

.bottom-center {
    animation-delay: .8s;
    animation: floatIn .9s var(--ease-out) forwards, floatY var(--ani-slow) ease-in-out infinite alternate;
}

.bottom-right {
    animation-delay: 1s;
    animation: floatIn .9s var(--ease-out) forwards, floatY var(--ani-slow) ease-in-out infinite alternate;
}

@keyframes floatY {
    from {
        transform: translateY(-10px);
    }

    to {
        transform: translateY(10px);
    }
}

/* Vision & Mission cards reveal */
.card {
    opacity: 0;
    transform: translateY(24px) scale(.95);
}

.card.in-view {
    animation: cardIn .7s var(--ease-out) forwards;
}

@keyframes cardIn {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Timeline dots pulse */
.timeline .dot {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: .9;
    }

    50% {
        transform: scale(1.3);
        opacity: .6;
    }
}
@media (max-width: 768px) {
  .about-section {
    height: auto;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  .about-title {
    position: static;
    transform: none;
    font-size: 48px;
    margin-bottom: 40px;
    text-align: center;
  }

  .image,
  .vision-box,
  .mission-box {
    position: static;
    width: 100%;
    max-width: 320px;
    margin: 20px auto;
    height: auto;
  }

  .vision-box,
  .mission-box {
    background: #181818;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .history-content {
    flex-direction: column;
    padding: 20px;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 40px;
    opacity: 1 !important; /* always visible */
    transform: none !important;
  }

  .year {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .history-image img {
    position: static;
    width: 100%;
    height: auto;
    max-width: 400px;
    margin-top: 20px;
    opacity: 1 !important;
  }
}
@media (max-width: 768px) {
  .department-content h1 { font-size: 32px; }
  .dean-text h1 { font-size: 28px; }
  .dean-text p { font-size: 16px; }
}
@media (max-width: 480px) {
  .about-title { font-size: 36px; }
  .history-title { font-size: 36px; margin-left: 20px; }
}
